package com.demo;

import com.demo.util.Tabs;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

import static com.demo.util.ControllerManager.leftController;

public class HelloApplication extends Application {
    @Override
    public void start(Stage stage) throws IOException {
        // step1
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("main-view.fxml"));
        Scene scene1 = new Scene(fxmlLoader.load());
        Tabs.addScene(Tabs.STEP1_KEY, scene1);
        leftController.setCurrentStep(1);

        // 默认显示 step1
        stage.setTitle("Step1!");
        stage.setScene(scene1);
        stage.show();

    }
}
